import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import './routers/routers.dart';
import "package:get/get.dart";
 

import 'bindding/web3.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  
  const MyApp({super.key});
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
      SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
      statusBarColor: Colors.transparent,
      statusBarIconBrightness: Brightness.dark, // 将状态栏图标颜色设置为亮色（白色）
      statusBarBrightness: Brightness.dark, // 这通常用于iOS，设置状态栏亮度，但请注意iOS 13及以后不再需要此属性，因为系统会自动调整以符合暗模式或亮模式
    ));
    return GetMaterialApp(
      initialBinding: WebControllerBinding(),
        debugShowCheckedModeBanner: false,
        title: 'Flutter Demo',
        theme: ThemeData(
          splashColor: Colors.transparent,
          primarySwatch: Colors.blue,
          scaffoldBackgroundColor: const Color.fromARGB(255, 255, 255, 255), // 页面背景色
        ),
        initialRoute: '/',
        defaultTransition: Transition.rightToLeft,
        getPages: AppPage.routes);
  }
}
